var http = require('http');
var options = {
  host: "127.0.0.1",
  method: 'GET',
  path: "/xxx/yyy?name=who",
  port: 3000
};

var client = http.get(options,function(res){
  res.setEncoding('utf8');
  res.on('data',function(data){
    console.log(data);
  });
});